package com.nit.lab.entity.basic;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.sql.Timestamp;
import java.util.Date;

public class GoodsListEntity {
    private Long listId;

    private String goodsName;

    private String goodsDesc;

    private String creator;

    private String photoUrl;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date showTime;

    private Integer goodsNum;

    private Integer goodsStatus;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    private String goodsUnit;

    public GoodsListEntity() {
    }

    public String getGoodsUnit() {
        return goodsUnit;
    }

    public void setGoodsUnit(String goodsUnit) {
        this.goodsUnit = goodsUnit;
    }

    public Long getListId() {
        return listId;
    }

    public void setListId(Long listId) {
        this.listId = listId;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getGoodsDesc() {
        return goodsDesc;
    }

    public void setGoodsDesc(String goodsDesc) {
        this.goodsDesc = goodsDesc;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public String getPhotoUrl() {
        return photoUrl;
    }

    public void setPhotoUrl(String photoUrl) {
        this.photoUrl = photoUrl;
    }

    public Date getShowTime() {
        return showTime;
    }

    public void setShowTime(Date showTime) {
        this.showTime = showTime;
    }

    public Integer getGoodsNum() {
        return goodsNum;
    }

    public void setGoodsNum(Integer goodsNum) {
        this.goodsNum = goodsNum;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getGoodsStatus() {return goodsStatus;}

    public void setGoodsStatus(Integer goodsStatus) {this.goodsStatus = goodsStatus;}

    @Override
    public String toString() {
        return "GoodsListEntity{" +
                "listId=" + listId +
                ", goodsName='" + goodsName + '\'' +
                ", goodsDesc='" + goodsDesc + '\'' +
                ", creator='" + creator + '\'' +
                ", photoUrl='" + photoUrl + '\'' +
                ", showTime=" + showTime +
                ", goodsNum=" + goodsNum +
                ", goodsStatus=" + goodsStatus +
                ", createTime=" + createTime +
                ", goodsUnit='" + goodsUnit + '\'' +
                '}';
    }
}
